﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="UpdateDoctor.aspx.cs" Inherits="MyHospital.web.UpdateDoctor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="login" class="login">
             <!-- 登陆框标题 -->
             <div id="login-title" class="login-title">
                修改医生  
                 <span><a id="closeBtn" href="ManageDoctor.aspx">关闭</a></span>
             </div>
            <!-- 登陆框表单 -->
           <table id="login-form" style="margin-left:150px">
                    <tr class="login-input">
                        <td><label>医生姓名：</label></td>
                        <td><asp:TextBox ID="txtUpdateName" class="list-input" runat="server" Text="" ></asp:TextBox></td>
                        <td><asp:RequiredFieldValidator ControlToValidate="txtUpdateName" Display="Dynamic" ForeColor="Red" ID="RequiredFieldValidator3" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </tr>
                    <tr class="login-input">
                        <td><label>部门名称：</label></td>
                        <td><asp:DropDownList ID="dlsUpdateDepart" class="list-input" runat="server" DataSourceID="LinqDataSource1" style="height: 35px;line-height: 35px;width: 350px;text-indent: 5px;" DataTextField="departName" DataValueField="departId"></asp:DropDownList></td>
                    </tr>
                    <tr class="login-input">
                        <td><label>年龄：</label></td>
                        <td><asp:TextBox ID="txtUpdateAge" class="list-input" runat="server" Text=""></asp:TextBox></td>
                        <td><asp:RequiredFieldValidator ControlToValidate="txtUpdateAge" Display="Dynamic" ForeColor="Red" ID="RequiredFieldValidator2" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </tr>
                    <tr class="login-input1">
                        <td><label id="txtUpdateSex" style="float: left;height: 35px;line-height: 35px;width: 90px;padding-left: 10px;text-align: right;font-size: 14px;">性别：</label></td>
                        <td>
                            <asp:RadioButton ID="RadioButton1" Text="男" runat="server" GroupName="Sex" />
                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:RadioButton ID="RadioButton2" Text="女" runat="server" GroupName="Sex"/>
                        </td>
                    </tr>
                    <tr class="login-input">
                        <td><label>电话：</label></td>
                        <td><asp:TextBox ID="txtUpdatePhone" class="list-input" runat="server" Text=""></asp:TextBox></td>
                        <td><asp:RequiredFieldValidator ControlToValidate="txtUpdatePhone" Display="Dynamic" ForeColor="Red" ID="rfvPhone" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revPhone" runat="server" ErrorMessage="手机号码格式不正确！" ControlToValidate="txtUpdatePhone" Display="Dynamic" ForeColor="Red" ValidationExpression="\d{11}">
                        </asp:RegularExpressionValidator></td>
                    </tr>
                    <tr class="login-input">
                        <td><label>职位：</label></td>
                        <td><asp:TextBox ID="txtUpdateJob" class="list-input" runat="server" Text=""></asp:TextBox></td>
                        <td><asp:RequiredFieldValidator ControlToValidate="txtUpdateJob" Display="Dynamic" ForeColor="Red" ID="RequiredFieldValidator4" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </tr>
                    <tr class="login-input">
                        <td><label>简介：</label></td>
                        <td><asp:TextBox ID="txtUpdateIntroduce" class="list-input" runat="server" Text=""></asp:TextBox></td>
                        <td><asp:RequiredFieldValidator ControlToValidate="txtUpdateIntroduce" Display="Dynamic" ForeColor="Red" ID="RequiredFieldValidator6" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </tr>
                   <tr class="login-input">
                        <td><label>照片：</label></td>
                        <td><asp:TextBox ID="txtUpdateImage" class="list-input" runat="server" Text=""></asp:TextBox></td>
                       <td><asp:RequiredFieldValidator ControlToValidate="txtUpdateImage" Display="Dynamic" ForeColor="Red" ID="RequiredFieldValidator5" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </tr>
                   <tr>
                       <td></td>
                       <td><asp:Button ID="submitUpdateDocter" class="loginSubmit" runat="server" Text="修改医生" OnClick="submitUpdateDocter_Click"/>
                       </td>
                       <td><asp:Label ID="updateLable" runat="server" Text="" ForeColor="Red"></asp:Label></td>
                   </tr>
               <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="MyHospital.DAL.MyHospitalDataContext" EntityTypeName="" TableName="Department">
               </asp:LinqDataSource>
                </table>
        <style type="text/css">
               *{
                   padding: 0px;
            margin-left: 0px;
            margin-right: 0px;
            margin-top: 0px;
        }
               .submitDocter{
                   width:200px;
               }
              /* 弹出登陆框按钮 */
              #login-header{
                  text-align: center;
                  height: 30px;
                  line-height: 30px;
              }
              #login-header a{
                  font-size: 24px;
                  text-decoration: none;
                  color: black;
              }
             
              /* 登陆框主体 */
              .login{
                  position: absolute;
                  width: 800px;
                  height: 430px;
                  z-index: 9999;
                  background-color: #8c8ea3;
                  /* 这里要注意绝对定位的盒子怎么在屏幕显示居中 */
                  left: 50%;
                  margin-left: -420px;
                  margin-top: 0px;
                  border: 1px solid gray;
              }
              .update{
                  position: absolute;
                  width: 800px;
                  height: 430px;
                  z-index: 9999;
                  display: none;
                  background-color: #8c8ea3;
                  /* 这里要注意绝对定位的盒子怎么在屏幕显示居中 */
                  left: 50%;
                  margin-left: -420px;
                  margin-top: 0px;
                  border: 1px solid gray;
              }
              /* 登陆框标题 */
              .login-title{
                  width: 100%;
                  height: 40px;
                  line-height: 40px;
                  text-align: center;
                  margin-bottom: 20px;
                  cursor: move;
              }
              .login-title1{
                  width: 100%;
                  height: 40px;
                  line-height: 40px;
                  text-align: center;
                  margin-bottom: 20px;
                  cursor: move;
              }
              .login-title span a{
                  text-decoration: none;
                  border: 1px solid gray;
                 font-size: 12px;
                 color: black;
                 border-radius: 20px;
                 width: 40px;
                 height: 40px;
                 background-color: #fff;
                 position: absolute;
                 top: -20px;
                 right: -20px;
             }
             
             /* 登陆表单 */
             .login-input label{
                 float: left;
                 height: 35px;
                 line-height: 35px;
                width: 90px;
                padding-left: 10px;
                 text-align: right;
                 font-size: 14px;
             }
             .sex{
                 float: left;
                 height: 35px;
                 line-height: 35px;
                 width: 90px;
                padding-left: 10px;
                 text-align: right;
                 font-size: 14px;
             }
             .login-input input.list-input{
                 height: 35px;
                line-height: 35px;
                width: 350px;
               text-indent: 5px;
             }
             .dlsDepart{
                 height: 35px;
                line-height: 35px;
                width: 350px;
               text-indent: 5px;
             }
             .dlsDepart2{
                 height: 35px;
                line-height: 35px;
                width: 350px;
               text-indent: 5px;
             }
             #txtName{
                 height: 35px;
                line-height: 35px;
                width: 350px;
                  text-indent: 5px;
             }
             #txtDec{
                 height: 35px;
                line-height: 35px;
                width: 350px;
                  text-indent: 5px;
             }
              
             /* 遮盖层 */
             .bg{
                 background-color: #000;
                width: 2000px;
                height: 100%;
                 top: 0px;
                position: fixed;
                 opacity: 0.3;
                 display: none;
                 margin-left:-250px;
             }
         </style>
            </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
